package org.hhgzs.modules.erp.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author peiqy
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hx_depot")
public class Depot extends Model<Depot> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 仓库名称
     */
    private String name;

    /**
     * 仓库地址
     */
    private String address;

    /**
     * 仓储费
     */
    private BigDecimal warehousing;

    /**
     * 搬运费
     */
    private BigDecimal truckage;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 排序
     */
    private String sort;

    /**
     * 描述
     */
    private String remark;

    /**
     * 负责人
     */
    private Long principal;

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField("delete_Flag")
    private String deleteFlag;

    /**
     * 是否默认
     */
    @TableField("is_default")
    private Boolean isDefault;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
